package org.ycty.deale;

import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.ycty.dao.HibernateSessionFactory;
import org.ycty.entity.Swt;

public class UpInfo {
	public Boolean upinfo(Swt swt){
		Boolean b = true;
		Session session = HibernateSessionFactory.getSession();
		Transaction tc = null;
		
		try {
			tc = session.beginTransaction();
			session.update(swt);
			tc.commit();
		} catch (HibernateException e) {
			// TODO Auto-generated catch block
			b = false;
			e.printStackTrace();
		}
		return b;
		
	}
}
